#ifndef __BSP_UART_H__
#define __BSP_UART_H__

#define UART_BUFF_SIZE 50

typedef enum
{
	MSG_RECV,
	MSG_RECV_COMP,
	MSG_SEND,
	MSG_SNED_COMP,
	MSG_HANDER_COMP
} MSG_STATE;

typedef struct
{
	MSG_STATE state;
	unsigned char current_recv;
	unsigned char current_send;
	unsigned char buff_lenght;
	char buff[UART_BUFF_SIZE];
} uart1_msg_t;

extern uart1_msg_t uart1_msg;

void bsp_uart_init(void);
void uart_send_string(char *str);

#endif
